﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Game.Common
{
    class Util
    {
        
        //初始化大漠
        public static dmsoft CreateDM(int hWnd)
        {
            dmsoft dm = new dmsoft();
            dm.SetPath(Directory.GetCurrentDirectory() + "\\pic");
            dm.SetSimMode(1);
            dm.MoveWindow(hWnd, 0, -22);
            //dm.MoveWindow(hWnd, 0, -22);
            //int ret = dm.BindWindowEx(hWnd, "normal", "normal", "normal", "", 0);
            return dm;
        }

        public static int rnd(int min, int max)
        {
            Random rd = new Random();
            return rd.Next(min, max);
        }
    }
}
